Search in sources :

Example 16 with FDroidApp

use of org.fdroid.fdroid.FDroidApp in project fdroidclient by f-droid.

the class CalculatorActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    FDroidApp fdroidApp = (FDroidApp) getApplication();
    fdroidApp.applyPureBlackBackgroundInDarkTheme(this);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_calculator);
    MaterialToolbar toolbar = findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    textView = (TextView) findViewById(R.id.textView);
}
Also used : MaterialToolbar(com.google.android.material.appbar.MaterialToolbar) FDroidApp(org.fdroid.fdroid.FDroidApp)

Aggregations

FDroidApp (org.fdroid.fdroid.FDroidApp)16 Intent (android.content.Intent)7 MaterialToolbar (com.google.android.material.appbar.MaterialToolbar)7 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)5 IntentFilter (android.content.IntentFilter)3 View (android.view.View)3 TextView (android.widget.TextView)3 RecyclerView (androidx.recyclerview.widget.RecyclerView)3 Uri (android.net.Uri)2 TextUtils (android.text.TextUtils)2 MenuItem (android.view.MenuItem)2 ImageView (android.widget.ImageView)2 AppCompatActivity (androidx.appcompat.app.AppCompatActivity)2 Utils (org.fdroid.fdroid.Utils)2 Repo (org.fdroid.fdroid.data.Repo)2 TargetApi (android.annotation.TargetApi)1 PendingIntent (android.app.PendingIntent)1 BroadcastReceiver (android.content.BroadcastReceiver)1 ContentValues (android.content.ContentValues)1 Context (android.content.Context)1