package com.tencent.mm.plugin.dbbackup;

import android.widget.Toast;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.dbbackup.c.3;

class c$3$1 implements Runnable {
    final /* synthetic */ int fLS;
    final /* synthetic */ 3 kHU;

    c$3$1(3 3, int i) {
        this.kHU = 3;
        this.fLS = i;
    }

    public final void run() {
        CharSequence format;
        AppMethodBeat.i(18931);
        if (this.kHU.kHP != null) {
            this.kHU.kHP.dismiss();
        }
        if (this.fLS == 0) {
            format = String.format("Database recovery succeeded, elapsed %.2f seconds.", new Object[]{Float.valueOf(((float) (System.nanoTime() - this.kHU.fEG)) / 1.0E9f)});
        } else if (this.fLS == 1) {
            format = "Database recovery canceled.";
        } else {
            format = "Database recovery failed.";
        }
        Toast.makeText(this.kHU.val$context, format, 0).show();
        AppMethodBeat.o(18931);
    }
}
